package edu.ntnu.controller;

import edu.wsu.KheperaSimulator.RobotController;

/*
 * Robot's state
 */
public abstract class State {

	protected RobotController robot;
	protected MapBuilder mapBuilder;
	protected Movement driver;
	
	public State(RobotController newRobot) {
		robot = newRobot;
		mapBuilder = MapBuilder.getInstance();
		driver = new Movement(robot);
	}
	
	/**
	 * Does action of particular state
	 * @return	true if state is finished, false otherwise
	 */
	public abstract boolean doAction();
}
